<extend name="Base/common"/>
<block name="workclass">
    <div class="publish-list">
</block>
<block name="body">
    <empty name="_lists">
        <div class="content">
            <div class="title">我发布的项目</div>
            <div class="nothing box">
                <i class="iconfont icon-iconxiangmu1"></i>
                <div class="text">还没有提交过外包委托<br>马上发布一个</div>
                <a href="{:U('Worker/publish')}" class="btn">发布需求</a>
            </div>
            <div class="more">
                查看更多&nbsp;<i class="iconfont icon-load-down"></i>
            </div>
        </div>
        <else/>
        <div class="content">
            <!--<div class="success box"><i class="iconfont icon-selected"></i>
                <div class="success-text">您的项目已发布成功<br>我们将在24小时内与您联系</div>
                <i class="iconfont icon-nav-close close"></i>
            </div>-->
            <div class="title">我发布的项目</div>
            <volist name="_lists" id="v">
            <div class="service-info box">
                <div class="name"><a href="{:U( 'worker/detail', [ 'id'=> $v['id'] ] )}">{$v.name|default='项目名称暂未确定'}</a></div>
                <div class="status">
                    <span><i class="iconfont icon-status"></i>&nbsp;项目状态 </span>
                    <neq name="v.status" value="1">未审核
                        <else/>
                        <if condition="$v['bidstate'] eq 1">已完成
                            <elseif condition="$v['bidstate'] eq 2 && $v['bidtime'] elt 0"/>已截止
                            <elseif condition="$v['bidstate'] eq 2"/>竞标中
                            <elseif condition="$v['bidstate'] eq 4"/>工作中
                            <else/>未中标
                        </if>
                    </neq>
                </div>
                <div class="info">
                    <span><i class="iconfont icon-calendar"></i>&nbsp;期望周期&nbsp;&nbsp;</span>
                    <if condition="$v['duration'] eq 1">一周内
                        <elseif condition="$v['duration'] eq 2"/>一月内
                        <elseif condition="$v['duration'] eq 3"/>三月内
                        <elseif condition="$v['duration'] eq 4"/>半年内
                        <else/>不限时间
                    </if>
                </div>
                <div class="info">
                    <span><i class="iconfont icon-time"></i>&nbsp;创建时间&nbsp;&nbsp;</span>{$v.create_time|date='Y-m-d H:i:s', ###}
                </div>
                <div class="info">
                    <span><i class="iconfont icon-price"></i>&nbsp;项目预算&nbsp;&nbsp;</span>{$v.budget|default='面议'}元
                </div>
                <div class="info info-phone">
                    <span><i class="iconfont icon-phone"></i>&nbsp;联系电话&nbsp;&nbsp;</span>
                    <a href="tel:{$v.mobile|default='undefined'}" class="phone-mun"></a>
                </div>
                <a href="{:U( 'worker/detail', [ 'id'=> $v['id'] ] )}" class="m-btn-xiangqing"><!----></a>
            </div>
            </volist>
            <div class="more">
                查看更多&nbsp;<i class="iconfont icon-load-down"></i>
            </div>
        </div>
    </empty>
</block>
<block name="script">
    <script type="text/javascript">
        //'index-nav-show'
        (function() {
            var headerMenu = $('.header-menu');
            $('.icon-nav-menu').click(function(){
                headerMenu.addClass('menuShow');
            });
            $('.icon-nav-close').click(function(){
                headerMenu.removeClass('menuShow');
            });

            var setHeader = function() {
                var st = $(window).scrollTop();
                if(st > 0) {
                    $('.header-pc').removeClass('header-transparent');
                } else {
                    $('.header-pc').addClass('header-transparent');
                }
            };
            setHeader();
            $(window).scroll(function() {
                setHeader();
            });
        })();
    </script>
</block>